﻿using System;
using System.Collections.Generic;
using Newtonsoft.Json;

namespace Wala.Connection.Objects.Timeline
{
    public class LikeData
    {
        public LikeData()
        {
           
        }

        private List<UserInfo> _lstUserInfo= new List<UserInfo>();

        public List<UserInfo> LstUserInfo
        {
            get { return _lstUserInfo; }
            set { _lstUserInfo = value; }
        }

        public static LikeData FromJson(string json)
        {
            try
            {
                LikeData likeData = new LikeData();
                RetUserInfo userInfo = JsonConvert.DeserializeObject<RetUserInfo>(json);
                likeData.LstUserInfo = userInfo.user_info;
                return likeData;
            }
            catch (Exception ex)
            {
                return new LikeData();
            }
        }
    }
}
